<?php get_header(); ?>
<!-- Begin container -->
 <div id="container">
   <!-- Begin content -->
   <div id="content">
      <div id="content-inner">
    <!-- Begin topic -->
    <div id="single-page">
    <?php if (have_posts()) : the_post(); ?>
    <div id="post-<?php the_ID(); ?>">
     <div class="topictitle">
     <h2><a  href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
     <h3><small><?php comments_popup_link('Leave a Comment','1 Comment','% Comments'); ?></small><?php the_time('Y.m.d G:i') ?>　by <b><?php the_author() ?></b>　<?php edit_post_link('edit'); ?>
     </h3>
     </div>
     <div class="topicinfo">
     <?php the_content('[Read more]'); ?>
     </div>
	 <?php wp_link_pages(array('before' => '<p><b>Pages:</b> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
		<?php if(function_exists('wp23_related_posts')) : ?>
		<div class="related_post">
			<?php wp23_related_posts(); ?>
		</div>
	<?php endif; ?>
	<div class="postmetadata">
			<b><?php _e('Tag', 'eachBlue'); ?></b>:<?php the_tags(' ', ', ', ''); ?> | <b><?php _e('Category', 'eachBlue'); ?></b>: <?php the_category(', ') ?><br />
			如需转载烦请添加以下信息: 本文转自<a href="<?php the_permalink() ?>" title="<?php bloginfo('name'); ?>"><b><?php the_author() ?>@<?php bloginfo('name'); ?>.</b></a><br />
			如喜欢这篇文章或者本站,建议您<a href="<?php bloginfo('rss2_url'); ?>" title="从各种订阅方式中选择适合您的" target="_blank"><b>RSS订阅</b></a>本站,以及时地获取更多精彩内容!
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open ?>
						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Only Pings are Open ?>
							本篇日志的评论功能已关闭,但是您依然可以引用它后<a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a>本站.
						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Comments are open, Pings are not ?>
							本篇日志的PING功能已关闭,您可以在下方的评论栏发表见解.
						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Neither Comments, nor Pings are open ?>
							对不起,本篇日志的评论和PING功能都已被关闭.
							<?php } edit_post_link('edit'); ?>
		</div>
	</div>	    
	<?php comments_template(); ?>
	<?php else : ?>
	<p class="errortip">
	<?php _e('Sorry, no posts matched your criteria.', 'eachBlue'); ?>
	</p>
    <?php endif; ?>	   
  </div>
  <!-- End topic -->
  </div>
 </div>
<!-- End content-->
 <?php get_sidebar(); ?> 
</div>
<!-- End container -->
<?php get_footer(); ?>